package com.atguigu.day11.homework.homework2;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/12 19:48
 * @注释
 */
public class Man extends Person{
    public Man(String name, int age, String career) {
        super(name, age, career);
    }

    public Man() {
    }

    @Override
    public void eat() {
        System.out.println(getName() + "狼吞虎咽的吃");
    }
    public void smoke(){
        System.out.println(getName() + "抽烟");
    }
}
